#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include"supsql.h"
#include <QMainWindow>
#include"page_login.h"
#include <dlg_addgood.h>
#include "dlg_adduser.h"
#include"dlg_register.h"
#include <QLabel>
#include <QTreeWidget>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow(); 
    QString aur;
private slots:
    void on_btn_Exit_clicked();

    void on_btnShowAllGoods_clicked();

    void on_btnAdd_clicked();

    void on_btnRemove_clicked();

    void on_btnChange_clicked();

    void on_btnSearch_clicked();

    void on_btnAdd_w_clicked();


    void on_btnSwitch_clicked();

    void on_btnShowAllWorkers_clicked();

    void on_btnRemove_w_clicked();

    void on_btnChange_w_clicked();

    void on_btnSearch_w_clicked();

public slots:


private:
    void UpDateTable();
    void UpDateTable2();
    void showDialog();

    void displayData(QString data);

private:
    Ui::MainWindow *ui;
    Page_Login m_dlgLogin;
    supsql *m_ptrSupSql;
    Dlg_AddGood m_dlgAddGood;
    dlg_adduser w_dlgAddUser;
    dlg_register reg;



};

#endif // MAINWINDOW_H
